arm64/mm: Limit TASK_SIZE_64 for compatibility
authorBen Hutchings <ben@decadent.org.uk>
Fri, 16 Sep 2016 15:32:23 +0000 (16:32 +0100)
committerBen Hutchings <ben@decadent.org.uk>
Wed, 4 Jan 2017 19:39:36 +0000 (19:39 +0000)
commit1e84ec1ca0833057fa65f78dc19ad53d33ffc9ef
treef6c6bade6eb0f78be5e8ed5d2fba3bcf7d836d72
parentd1d42e22f5dbdb42d04bdace7a04c8b0ec85e098
arm64/mm: Limit TASK_SIZE_64 for compatibility

Some programs assume they can use 17 tag bits in a 64-bit pointer,
which works on most other 64-bit architectures but not on arm64 with
CONFIG_ARM64_VA_BITS_48.  To maintain compatibility with these
programs, limit TASK_SIZE_64 to a maximum of 1 << 47.

Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Gbp-Pq: Topic bugfix/arm64
Gbp-Pq: Name arm64-mm-limit-task_size_64-for-compatibility.patch
arch/arm64/include/asm/memory.h